import request from '@/utils/request'

// 查询SysServiceWorkOrderBi列表
export function listSysServiceWorkOrderBi(query) {
  return request({
    url: '/system/SysServiceWorkOrderBi/list',
    method: 'get',
    params: query
  })
}

// 查询SysServiceWorkOrderBi详细
export function getSysServiceWorkOrderBi(id) {
  return request({
    url: '/system/SysServiceWorkOrderBi/' + id,
    method: 'get'
  })
}

// 新增SysServiceWorkOrderBi
export function addSysServiceWorkOrderBi(data) {
  return request({
    url: '/system/SysServiceWorkOrderBi',
    method: 'post',
    data: data
  })
}

// 修改SysServiceWorkOrderBi
export function updateSysServiceWorkOrderBi(data) {
  return request({
    url: '/system/SysServiceWorkOrderBi',
    method: 'put',
    data: data
  })
}

// 删除SysServiceWorkOrderBi
export function delSysServiceWorkOrderBi(year) {
  return request({
    url: '/system/SysServiceWorkOrderBi/' + year,
    method: 'delete'
  })
}
